using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace BuilderPattern
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();            
        }

        void CreatePerson()
        {
            Pen p = new Pen(Color.Yellow);            
            PersonDirector pdThin = new PersonDirector("Thin",this.pictureBox1.CreateGraphics(),p);
            pdThin.CreatePerson();

            PersonDirector pdFat = new PersonDirector("Fat",this.pictureBox2.CreateGraphics(),p);
            pdFat.CreatePerson();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            CreatePerson();
        }
    }
}